package pl.oczadly.jabberclient.mainwindow.presenter;

import pl.oczadly.jabberclient.connection.ConnectionHolder;
import pl.oczadly.jabberclient.mainwindow.view.IMainView;

public class GeneralPresenter implements IGeneralPresenter {

	private IMainView mainView;
	
	public GeneralPresenter( IMainView mainView ) {
		this.mainView = mainView;
	}
	
	public void restart() {
		// TODO: implement restart
	}

	public void exit() {
		ConnectionHolder.getConnection().disconnect();
		
		// Close the application:
		mainView.close();
	}

}
